<?php
namespace catchAdmin\basics\model\search;

trait BusinessTypeSearch
{
    public function searchNameAttr($query, $value, $data)
    {
        return $query->whereLike('name', $value);
    }
    public function searchAbbreviationAttr($query, $value, $data)
    {
        return $query->whereLike('abbreviation', $value);
    }

    public function searchTypeAttr($query, $value, $data)
    {
        return $query->where('type', $value);
    }
}